|
color21 2.2.0
|
This file contains API for Color 21 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | color21_data_t |
| Color 21 Click data object. More... | |
| struct | color21_t |
| Color 21 Click context object. More... | |
| struct | color21_cfg_t |
| Color 21 Click configuration object. More... | |
Enumerations | |
| enum | color21_return_value_t { COLOR21_OK = 0 , COLOR21_ERROR = -1 } |
| Color 21 Click return value data. More... | |
Functions | |
| void | color21_cfg_setup (color21_cfg_t *cfg) |
| Color 21 configuration object setup function. | |
| err_t | color21_init (color21_t *ctx, color21_cfg_t *cfg) |
| Color 21 initialization function. | |
| err_t | color21_default_cfg (color21_t *ctx) |
| Color 21 default configuration function. | |
| err_t | color21_generic_write (color21_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
| Color 21 I2C writing function. | |
| err_t | color21_generic_read (color21_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
| Color 21 I2C reading function. | |
| err_t | color21_write_reg (color21_t *ctx, uint8_t reg, uint8_t data_in) |
| Color 21 write register function. | |
| err_t | color21_read_reg (color21_t *ctx, uint8_t reg, uint8_t *data_out) |
| Color 21 read register function. | |
| err_t | color21_write_reg_word (color21_t *ctx, uint8_t reg, uint16_t data_in) |
| Color 21 write register word function. | |
| err_t | color21_read_reg_word (color21_t *ctx, uint8_t reg, uint16_t *data_out) |
| Color 21 read register word function. | |
| err_t | color21_check_communication (color21_t *ctx) |
| Color 21 check communication function. | |
| void | color21_set_ldr_pin (color21_t *ctx, uint8_t state) |
| Color 21 set ldr pin function. | |
| uint8_t | color21_get_int_pin (color21_t *ctx) |
| Color 21 get int pin function. | |
| uint8_t | color21_get_io_pin (color21_t *ctx) |
| Color 21 get io pin function. | |
| err_t | color21_set_reg_bank_access (color21_t *ctx, uint8_t reg_bank) |
| Color 21 set reg bank access function. | |
| err_t | color21_disable_ext_led (color21_t *ctx) |
| Color 21 disable ext led function. | |
| err_t | color21_enable_ext_led (color21_t *ctx, uint16_t led_curr) |
| Color 21 enable ext led function. | |
| err_t | color21_set_integration_time_ms (color21_t *ctx, float int_time_ms) |
| Color 21 set integration time ms function. | |
| err_t | color21_set_wait_time_ms (color21_t *ctx, float wait_time_ms) |
| Color 21 set wait time ms function. | |
| err_t | color21_read_data (color21_t *ctx, color21_data_t *data_out) |
| Color 21 read data function. | |
This file contains API for Color 21 Click Driver.